package com.apes.scm.masterdata.party.repository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.scm.masterdata.party.model.SupplierUserLog;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface SupplierUserLogRepository extends CustomRepository<SupplierUserLog, String> {

    @Query(value = "select count(t) from SupplierUserLog t where t.supplier.id = :supplierId")
   Integer findBySupplierId(@Param("supplierId") String supplierId);
}
